package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by liangweikang on 19/7/20.
 */

@Entity
@Data
@Table(name = "company_trade")
@ApiModel(value = "CompanyTeamEntity", description = "公司管理团队")
@DynamicInsert
@DynamicUpdate
public class CompanyTradeEntity {


    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "公司id")
    @Column(name = "company_id")
    private String companyId;

    @ApiModelProperty(value = "一级分类")
    @Column(name = "trade_a")
    private String tradeA;

    @ApiModelProperty(value = "二级分类")
    @Column(name = "trade_b")
    private String tradeB;

    @ApiModelProperty(value = "三级分类")
    @Column(name = "trade_c")
    private String tradeC;

//    @ApiModelProperty(value = "三级分类")
//    @Column(name = "trade_d")
//    private String tradeD;


    @ApiModelProperty(value = "一级分类")
    @Column(name = "trade_a_name")
    private String tradeAName;

    @ApiModelProperty(value = "二级分类")
    @Column(name = "trade_b_name")
    private String tradeBName;

    @ApiModelProperty(value = "三级分类")
    @Column(name = "trade_c_name")
    private String tradeCName;

//    @ApiModelProperty(value = "三级分类")
//    @Column(name = "trade_d_name")
//    private String tradeDName;
}
